<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>圣杯布局</title>
    <style>
        *{margin: 0;padding: 0}
        body{min-width: 700px}
        .header,.footer{
            background: #d9dde1;
            height: 40px;
            line-height: 40px;
            text-align: center;
            border: 1px solid #333333;
        }
        .container{
            padding: 0 220px 0 200px;
            overflow: hidden;
        }
        .middle{
            width:100%;
            background: #1a5acd;
        }
        .left{
            width: 200px;
            background: #ff0000;
            margin-left: -100%;
            left:-200px;
        }
        .right{
            width: 220px;
            background: #30a457;
            margin-left: -220px;
            right: -220px;
        }
        .left,.middle,.right{
            position: relative;
            float: left;
            min-height: 300px;
        }
        .footer{
            clear: both;
        }
    </style>
</head>
<body>
    <div class="header">
        <h4>header</h4>
    </div>
    <div class="container">
        <div class="middle">
            <h4>middle</h4>
            <p>这是页面的中间内容这是页面的中间内容
                这是页面的中间内容这是页面的中间内容</p>
        </div>
        <div class="left">
            <h4>left</h4>
            <p>这是页面的左侧内容</p>
        </div>
        <div class="right">
            <h4>right</h4>
            <p>这是页面的右侧内容</p>
        </div>
    </div>
    <div class="footer">
        <h4>footer</h4>
    </div>
</body>
</html>